package com.sbl.bajw.common.web;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionListener implements HttpSessionListener {

	public SessionListener() {
	}

	@Override
	public void sessionCreated(HttpSessionEvent arg0) {
		HttpSession session = arg0.getSession();
		String sessionId = session.getId();
		SessionUnit.addSession(sessionId, session);
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent arg0) {
//		HttpSession session = arg0.getSession();
//		String sessionId = session.getId();
//		SessionUnit.removeSession(sessionId);
	}

}